<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${goods.id}"  type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">商品名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" th:value="${goods.name}" class="form-control" type="text">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">商品进价：</label>
								<div class="col-sm-8">
									<input id="priceAmount" name="priceAmount" th:value="${goods.priceAmount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品售价：</label>
								<div class="col-sm-8">
									<input id="saleAmount" name="saleAmount" th:value="${goods.saleAmount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">交易金额：</label>
								<div class="col-sm-8">
									<input id="amount" name="amount" th:value="${goods.amount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">库存：</label>
								<div class="col-sm-8">
									<input id="count" name="count" th:value="${goods.count}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">品牌：</label>
								<div class="col-sm-8">
									<input id="brand" name="brand" th:value="${goods.brand}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品信息：</label>
								<div class="col-sm-8">
									<input id="goodInfo" name="goodInfo" th:value="${goods.goodInfo}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品规格：</label>
								<div class="col-sm-8">
									<input id="specs" name="specs" th:value="${goods.specs}" class="form-control" type="text">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">商品单位：</label>
								<div class="col-sm-8">
									<input id="unit" name="specs" th:value="${goods.unit}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="remark" name="remark" th:value="${goods.remark}" class="form-control" type="text">
								</div>
							</div>
							<!--商品状态  1:下架   0:上架-->
						<div class="form-group">
							<label class="col-sm-3 control-label">商品状态:</label>
							<div class="col-sm-8">
								<label class="radio-inline"> <input
									th:field="*{goods.status}" type="radio" name="status" value="1" />
									下架
								</label> <label class="radio-inline"> <input
									th:field="*{goods.status}" type="radio" name="status" value="0" />
									上架
								</label>
							</div>
						</div>


							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/goods/edit.js">
	</script>
</body>
</html>
